<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>DetailUser</title>
</head>
<body>
 <s:form theme="simple" action="saveUserRole">
   <s:if test="userDTOList.size() > 0">
          <div class="content">
               <table class="userTable" width="100%" border="1" align="center" cellpadding="4" cellspacing="1" class="gridtable">
               <tr>
			     <td align="left"><s:submit value="Save" name="Save"
				action="saveUserRole" cssClass="btnbg"/></td>
		      </tr>
		      
                  <tr class="even">
                    <th>UserEmailId</th>
                    <th>Role</th>
                   
                  </tr>
                <s:iterator value="userDTOList" var="user">
              
                      <td><s:property  value="#user.userName" /></td>
                     <td><s:select name="selectedAllowedRole" listKey="id" listValue="name" multiple="true" size="10"
						list="listAllRoles"/></td>
                     
                  </tr>
                 </s:iterator>
       </table>
          </div>
        </s:if>
        </s:form>
</body>
</html>